二丫讲梵 二丫讲梵
首页
  • 最佳实践
  • 迎刃而解
  • Nginx
  • Php
  • Zabbix
  • AWS
  • Prometheus
  • Grafana
  • CentOS
  • Systemd
  • Docker
  • Rancher
  • Ansible
  • Ldap
  • Gitlab
  • GitHub
  • Etcd
  • Consul
  • RabbitMQ
  • Kafka
  • MySql
  • MongoDB
  • OpenVPN
  • KVM
  • VMware
  • Other
  • ELK
  • K8S
  • LLM
  • Nexus
  • Jenkins
  • 随写编年
  • 家人物语
  • 追忆青春
  • 父亲的朋友圈
  • 电影音乐
  • 效率工具
  • 博客相关
  • Shell
  • 前端实践
  • Vue学习笔记
  • Golang学习笔记
  • Golang编程技巧
  • 学习周刊
  • Obsidian插件周刊
关于
友链
  • 本站索引

    • 分类
    • 标签
    • 归档
  • 本站页面

    • 导航
    • 打赏
  • 我的工具

    • 备忘录清单 (opens new window)
    • json2go (opens new window)
    • gopher (opens new window)
    • 微信MD编辑 (opens new window)
    • 国内镜像 (opens new window)
    • 出口IP查询 (opens new window)
    • 代码高亮工具 (opens new window)
  • 外站页面

    • 开往 (opens new window)
    • ldapdoc (opens new window)
    • HowToStartOpenSource (opens new window)
    • vdoing-template (opens new window)
GitHub (opens new window)

二丫讲梵

行者常至,为者常成
首页
  • 最佳实践
  • 迎刃而解
  • Nginx
  • Php
  • Zabbix
  • AWS
  • Prometheus
  • Grafana
  • CentOS
  • Systemd
  • Docker
  • Rancher
  • Ansible
  • Ldap
  • Gitlab
  • GitHub
  • Etcd
  • Consul
  • RabbitMQ
  • Kafka
  • MySql
  • MongoDB
  • OpenVPN
  • KVM
  • VMware
  • Other
  • ELK
  • K8S
  • LLM
  • Nexus
  • Jenkins
  • 随写编年
  • 家人物语
  • 追忆青春
  • 父亲的朋友圈
  • 电影音乐
  • 效率工具
  • 博客相关
  • Shell
  • 前端实践
  • Vue学习笔记
  • Golang学习笔记
  • Golang编程技巧
  • 学习周刊
  • Obsidian插件周刊
关于
友链
  • 本站索引

    • 分类
    • 标签
    • 归档
  • 本站页面

    • 导航
    • 打赏
  • 我的工具

    • 备忘录清单 (opens new window)
    • json2go (opens new window)
    • gopher (opens new window)
    • 微信MD编辑 (opens new window)
    • 国内镜像 (opens new window)
    • 出口IP查询 (opens new window)
    • 代码高亮工具 (opens new window)
  • 外站页面

    • 开往 (opens new window)
    • ldapdoc (opens new window)
    • HowToStartOpenSource (opens new window)
    • vdoing-template (opens new window)
GitHub (opens new window)
  • 学习周刊

    • 2025年

    • 2024年

      • 学习周刊-总第140期-2024年第01周
      • 学习周刊-总第141期-2024年第02周
      • 学习周刊-总第142期-2024年第03周
      • 学习周刊-总第143期-2024年第04周
      • 学习周刊-总第144期-2024年第05周
      • 学习周刊-总第145期-2024年第06周
      • 学习周刊-总第146期-2024年第07周
      • 学习周刊-总第147期-2024年第08周
      • 学习周刊-总第148期-2024年第09周
      • 学习周刊-总第149期-2024年第10周
      • 学习周刊-总第150期-2024年第11周
      • 学习周刊-总第151期-2024年第12周
      • 学习周刊-总第152期-2024年第13周
        • 学习周刊-总第153期-2024年第14周
        • 学习周刊-总第154期-2024年第15周
        • 学习周刊-总第155期-2024年第16周
        • 学习周刊-总第156期-2024年第17周
        • 学习周刊-总第157期-2024年第18周
        • 学习周刊-总第158期-2024年第19周
        • 学习周刊-总第159期-2024年第20周
        • 学习周刊-总第160期-2024年第21周
        • 学习周刊-总第161期-2024年第22周
        • 学习周刊-总第162期-2024年第23周
        • 学习周刊-总第163期-2024年第24周
        • 学习周刊-总第164期-2024年第25周
        • 学习周刊-总第165期-2024年第26周
        • 学习周刊-总第166期-2024年第27周
        • 学习周刊-总第167期-2024年第28周
        • 学习周刊-总第168期-2024年第29周
        • 学习周刊-总第169期-2024年第30周
        • 学习周刊-总第170期-2024年第31周
        • 学习周刊-总第171期-2024年第32周
        • 学习周刊-总第172期-2024年第33周
        • 学习周刊-总第173期-2024年第34周
        • 学习周刊-总第174期-2024年第35周
        • 学习周刊-总第175期-2024年第36周
        • 学习周刊-总第176期-2024年第37周
        • 学习周刊-总第177期-2024年第38周
        • 学习周刊-总第178期-2024年第39周
        • 学习周刊-总第179期-2024年第40周
        • 学习周刊-总第180期-2024年第41周
        • 学习周刊-总第181期-2024年第42周
        • 学习周刊-总第182期-2024年第43周
        • 学习周刊-总第183期-2024年第44周
        • 学习周刊-总第184期-2024年第45周
        • 学习周刊-总第185期-2024年第46周
        • 学习周刊-总第186期-2024年第47周
        • 学习周刊-总第187期-2024年第48周
        • 学习周刊-总第188期-2024年第49周
        • 学习周刊-总第189期-2024年第50周
        • 学习周刊-总第190期-2024年第51周
        • 学习周刊-总第191期-2024年第52周
      • 2023年

      • 2022年

      • 2021年

    • Obsidian插件周刊

    • 周刊
    • 学习周刊
    • 2024年
    二丫讲梵
    2024-03-28
    目录

    学习周刊-总第152期-2024年第13周

    文章发布较早,内容可能过时,阅读注意甄别。

    # 0 ,前言

    周刊维护在:https://github.com/eryajf/learning-weekly (opens new window) 欢迎投稿,推荐或自荐项目 /文章 /博客,请提交 issue 。

    周刊核心为运维周刊,还会侧重 Go 语言生态,Vue 相关技术生态的项目,以及 GitHub 上优秀项目或经验。

    你也可以在我的博客 https://wiki.eryajf.net/learning-weekly/ (opens new window) 查看汇总周刊。

    🔥 有不少人想单独从博客通过 RSS 订阅周刊的更新,现在它来了,你可以使用这个🔗 链接 (opens new window)进行订阅。

    # 1,优秀项目


    • 项目地址:go-jsonstruct (opens new window)
    • 项目说明:一款能够将 JSON 内容转换为结构体的命令行工具。

      执行如下命令:

    echo '{"age":37,"user_height_m":2}' \
        '{"age":38,"user_height_m":1.7,"favoriteFoods":["cake"]}' \
        | gojsonstruct
    
    1
    2
    3

    将会得到如下输出:

    package main
    
    type T struct {
        Age           int      `json:"age"`
        FavoriteFoods []string `json:"favoriteFoods,omitempty"`
        UserHeightM   float64  `json:"user_height_m"`
    }
    
    1
    2
    3
    4
    5
    6
    7

    • 项目地址:earthly (opens new window)
    • 项目说明:一个简单的构建框架,具有快速、可重复的构建和立即熟悉的语法 - 就像 Dockerfile 和 Makefile 一样。 比如有如下 go 代码:
    // main.go
    package main
    
    import "fmt"
    
    func main() {
      fmt.Println("hello world")
    }
    
    1
    2
    3
    4
    5
    6
    7
    8

    指定 earthly 配置如下:

    # Earthfile
    VERSION 0.8
    FROM golang:1.15-alpine3.13
    RUN apk --update --no-cache add git
    WORKDIR /go-example
    
    all:
      BUILD +lint
      BUILD +docker
    
    build:
      COPY main.go .
      RUN go build -o build/go-example main.go
      SAVE ARTIFACT build/go-example AS LOCAL build/go-example
    
    lint:
      RUN go get golang.org/x/lint/golint
      COPY main.go .
      RUN golint -set_exit_status ./...
    
    docker:
      COPY +build/go-example .
      ENTRYPOINT ["/go-example/go-example"]
      SAVE IMAGE go-example:latest
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24

    然后执行 earthly +all 命令进行构建: 可以考虑作为构建工具集成到流水线当中。


    • 项目地址:lobe-chat (opens new window)
    • 项目说明:一个开源、现代设计的 ChatGPT/LLM UI/框架。支持语音合成、多模态和可扩展(函数调用)插件系统。一键免费部署您的私人 ChatGPT/Gemini/Ollama 聊天应用程序。

    申明

    原创文章eryajf,未经授权,严禁转载,侵权必究!此乃文中随机水印,敬请读者谅解。

    Copyright 二丫讲梵 (opens new window) 版权所有

    # 2,优秀文章


    • using curl command in pod lifecycle poststart hooks (opens new window)
    • 如题,在 k8s 的 yaml 中,如果 command 中的 curl 命令引用了运行时的变量,需要注意使用 ${} 的方式来引用,而不要直接引用,否则变量会被解析,且解析为空。

    • How to solve ptrace operation not permitted when trying to attach GDB to a process? (opens new window)
    • 如果 docker run 运行容器之后,使用 strace 抓取进程调用报错,此文给了解决方案。可以通过在启动命令增加 --privileged --cap-add=SYS_PTRACE --security-opt seccomp=unconfined 参数来解决。

    # 3,优秀博客


    • 博客地址:敖武的博客 (opens new window)
    • 简单说明:很优秀的博主,博客内容很好,值得一读

    • 博客地址:HTMLrev (opens new window)
    • 简单说明:汇集了大量免费优美的 html 模板的站点。官网,落地页,产品页,都可以在这里寻找。

    微信 支付宝
    #学习周刊
    上次更新: 2025/03/06, 21:25:58
    学习周刊-总第151期-2024年第12周
    学习周刊-总第153期-2024年第14周

    ← 学习周刊-总第151期-2024年第12周 学习周刊-总第153期-2024年第14周→

    最近更新
    01
    记录二五年五一之短暂回归家庭
    05-09
    02
    学习周刊-总第210期-2025年第19周
    05-09
    03
    学习周刊-总第209期-2025年第18周
    05-03
    更多文章>
    Theme by Vdoing | Copyright © 2017-2025 | 点击查看十年之约 | 浙ICP备18057030号
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式